package com.september.mongo.entities;

import java.util.List;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Reference;
import com.september.util.BaseData;

@Entity
public class Group extends BaseData {
	
	@Id
	private String groupName;
	private String description;
	@Reference
	private List<Role> roles;
	@Reference
	private List<User> userList;
	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	public List<User> getUserList() {
		return userList;
	}

	public void setUserList(List<User> userList) {
		this.userList = userList;
	}

	@Override
	public String[] getOrdreredField() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void manageRefernces() {
		// TODO Auto-generated method stub

	}

}
